const { defineConfig } = require('@vue/cli-service')
module.exports = ({
  transpileDependencies: true,
  productionSourceMap: true,
  filenameHashing: true,
  publicPath: './',
  lintOnSave: false,
  devServer: {
    allowedHosts:['qq.com','47.103.39.165'],
    // host: 'localhost',
    port: 80,
    proxy: {
      "/api": {
        target: 'http://47.103.39.165',
        changeOrigin: true,
        pathRewrite: {
          "/api": "/Api/v1",
        },
      },
    }
  }
})
